//
//  NYLoginManager.h
//  PromotionCode
//
//  Created by uuu9 on 2017/11/16.
//  Copyright © 2017年 My. All rights reserved.
//

#import "BaseNetManager.h"
@class LoginModel,NYSMSVerificationModel,NYMainModel,NYBindListModel,NYRegionListModel;


@interface NYLoginManager : BaseNetManager

//获取验证码
+(void)getVerifyCodeWithPhone:(NSString *)phone andType:(NSString *)type CompletionHandle:(void (^)(NYSMSVerificationModel *model, NSError *error))complete;

//三方登录
+(void)thrLoginWithOpenID:(NSString *)openid andType:(NSString *)type andName:(NSString *)nickName andImg:(NSString *)image andSexe:(NSString *)sex andCity:(NSString *)city CompletionHandle:(void (^)(LoginModel *, NSError *))complete;
    
//电话密码登录
+ (void)loginWithPhoneNum:(NSString *)phoneNum andPassword:(NSString *)passwd andCompletionHandle:(void(^)(LoginModel *account, NSError *error))complete;
//电话验证码注册登录
+ (void)registerAndLoginWithPhoneNum:(NSString *)phoneNum andVerifyCode:(NSString *)code andCompletionHandle:(void(^)(LoginModel *account, NSError *error))complete;
//退出
+ (void)logoutWithUserid:(NSString *)uid andSessionid:(NSString *)sessionid andCompletionHandle:(void (^)(LoginModel *account, NSError *error))complete;

//修改密码
+(void)modifyPwdWithPhoneNum:(NSString *)phoneNum andPassword:(NSString *)passwd andVerifyCode:(NSString *)code andCompletionHandle:(void (^)(NYMainModel *, NSError *))complet;

//s重置手机
+(void)resetPhoneWithUserID:(NSString *)userID andSessionID:(NSString *)sessionID andPhone:(NSString *)phone andCode:(NSString *)code andCompletionHandle:(void (^)(NYMainModel *model, NSError *error))complete;

+(void)modifyUserInfoWithUserID:(NSString *)userID andSessionID:(NSString *)sessionID andNickname:(NSString *)name andNewID:(NSString *)newid andCity:(NSString *)city andGender:(NSString *)gender andBirthday:(NSString *)birthday andDesc:(NSString *)desc andImg:(NSString *)imgUrl andCompletionHandle:(void (^)(NYMainModel *, NSError *))complete;


+(void)getThr3BindListWithUserID:(NSString *)uid andSessionID:(NSString *)sessionid andCompletionHandle:(void (^)(NYBindListModel *model, NSError *error))complete;

+(void)bindThr3WithUserID:(NSString *)uid andSessionID:(NSString *)sessionid andUnionid:(NSString *)unionid andType:(NSString *)type andHead:(NSString *)head andNickname:(NSString *)nickname andSex:(NSString *)sex andCity:(NSString *)city andCompletionHandle:(void (^)(NYMainModel *model, NSError *error))complete;

+(void)getRegionListWithUserID:(NSString *)uid andSessionID:(NSString *)sessionid andParentID:(NSString *)parentid andLevel:(NSString *)level andCompletionHandle:(void (^)(NYRegionListModel *model, NSError *error))complete;
@end
